package com.lkm.app_ui.m.Imple.order_img;

import com.lkm.app_ui.m.camera.CameraModule;
import com.lkm.app_ui.m.order_img.OrderImgModule;
import com.lkm.frame.module.ConditionConfige;
import com.lkm.frame.module.ModuleDelegate;
import com.lkm.frame.module.ModuleManager;



public class OrderImgModuleDelegate implements ModuleDelegate<OrderImgModule, Void> {

    private ModuleManager moduleManager;

    @Override
    public void init(ModuleManager moduleManager) {

        this.moduleManager = moduleManager;
    }

    @Override
    public void dependency(DependencyConfig dc) {
        dc.addDependency(CameraModule.class);

    }

    @Override
    public void configure(ConditionConfige<Void> cc) {

    }

    @Override
    public OrderImgModule execute(Void aVoid) {
        return new OrderImgModuleImpl(moduleManager.loadModule(CameraModule.class));
    }

    @Override
    public Class<OrderImgModule> getModuleInterfaceClass() {
        return OrderImgModule.class;
    }

    @Override
    public void onError(ErrorWarp e) {

    }
}
